package edu.del.springbootredisbusinesspractice.commons.exception;

public class GlobalException extends RuntimeException {
  private final Integer errorCode;

    public GlobalException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }
}
